<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title><?php echo getStoreName($_GET['local_id']);?>-商品列表</title>
    <link rel="stylesheet" href="/Public/Home/css/newGoods.css">
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
</head>
<body>
    <div class="new-goods">
        <!-- 促销板块 $local_id,$id-->
        <div class="promotion-goods wrapper">
            <div class="goods-horizontal"></div>
        </div>
    </div>
    
<!-- 子类主菜单 -->
<div class="subclass-main-nav">
    <div class="subclass-main-on"><a href="javascript:void(0)"><span>快速导航</span></a></div>
</div>
<div class="subclass-main-menu" style="display: none;">
    <div class="subclass-main-off"><a href="javascript:void(0)" class="close"><span>快速导航</span></a></div>
    <div class="subclass-main-menu-demo">
        <a href="<?php echo url('store/index');?>" class="home active"><span></span><p>首页</p></a>
        <a href="<?php echo url('category/index');?>" class="category"><span></span><p>分类</p></a>

        <?php $qgs_id = ($_GET['local_id']=='11') ? $_GET['top_local_id'] : $_GET['local_id']; ?>
        <a href="<?php echo url('store/index', ['local_id' => '11','top_local_id' => $qgs_id]);?>" class="store-way active"><span></span><p>全国送</p></a>
        <a href="<?php echo url('carts/cart');?>" class="cart"><span></span><p>购物车</p></a>
        <a href="<?php echo url('Member/index');?>" class="mine"><span></span><p>我的</p></a>
    </div>         
</div>


    <script type="text/javascript">
        var $local_id = "<?php echo ($local_id); ?>", $id = "<?php echo ($id); ?>", $type = "<?php echo ($type); ?>", page = 1;
        require(['newGoods','subClassMain']);
    </script>
</body>
</html>